package com.telecom.cms.service;

import java.util.List;
import com.telecom.cms.dao.CampCampDAO;
import com.telecom.cms.dao.SysTeamDAO;
import com.telecom.cms.dto.CampCamp;
import com.telecom.cms.util.Constant;

public class CampCampMgr {
   
	public void save(CampCamp campcamp){
		(new CampCampDAO()).insert(campcamp);
	}
	
	public void  delete(CampCamp campcamp){
		(new CampCampDAO()).delete(campcamp);
	}
	
	public List findall(){
		List result=(new CampCampDAO()).findAll();
		return result;
	}
	
	public List findall(String latnid){
		if (latnid.equals((new Constant()).getPara("PROVINCEID")))
			return findall();
		List result=(new CampCampDAO()).findAll(latnid);
		return result;
	}
	
	public CampCamp findbyid(String campid){
		CampCamp result=(new CampCampDAO()).findById(campid);
		return result;
	}
}
